using System;
using System.Collections.Generic;

namespace Core
{
    public class PurchaseOrder
    {
        public virtual string PONumber { get; set; }
        public virtual DateTime PODate { get; set; }
        public virtual Supplier Supplier { get; set; }
        public virtual Warehouse Warehouse { get; set; }
        public virtual DateTime TglTerimaBarang { get; set; }
        public virtual Currency Currency { get; set; }
        public virtual Decimal Kurs { get; set; }
        public virtual string Term { get; set; }
        public virtual Decimal Ppn { get; set; }
        public virtual string Description { get; set; }
        public virtual bool IsApproved { get; set; }
        public virtual string created_by { get; set; }
        public virtual DateTime? created_date { get; set; }
        public virtual string modified_by { get; set; }
        public virtual DateTime? modified_date { get; set; }
        public virtual IList<PurchaseOrderDetail> PurchaseOrderDetails { get; set; }
        public virtual Decimal Discount { get; set; }
        public virtual string DiscountType { get; set; }
        public virtual int Status { get; set; }
        public virtual Decimal Total { get; set; }
        public virtual IList<BTB> Btbs { get; set; }
        public virtual bool HasSent { get; set; }


        public virtual void ChangeStatusBtb()
        {
            Status = 1;
        }
    }
}